package sdp.group14.management;

import sdp.group14.R;
import sdp.group14.management.staff.StaffRequestListActivity;
import sdp.group14.management.tenant.TenantManagementActivity;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    public void onStaffManagementClick(View view)
    {
		try {			
			Intent intent = new Intent(MainActivity.this,
					StaffRequestListActivity.class);
			startActivity(intent);
		} catch (Exception e) {
			Log.e("MAD", "error occurs in getting coordinates");
		}
    }
    
    
    public void onTenantManagementClick(View view) {
		try {
			
			Intent intent = new Intent(MainActivity.this,
					TenantManagementActivity.class);
			startActivity(intent);

		} catch (Exception e) {
			Log.e("MAD", "error occurs in getting coordinates");
		}
	}
}
